<template>
  
</template>

<script>
import { getToken, setToken } from '@/utils/auth'

export default {
    name: 'ssoLogin',
    data() {

    },
    created() {
        //获取token
        let tokenId = this.$route.query.token;
        setToken(tokenId);
        // this.$router.push("/tool/datav/datavIndex");
        const viewRuter = this.$router.resolve({path: '/tool/datav/datavIndex'});
        window.open(viewRuter.href,'_self')
        // if(!getToken()) {
        //     //获取token
        //     let tokenId = this.$route.query.token;
        //     setToken(tokenId);
        //     // this.$router.push("/tool/datav/datavIndex");
        //     const viewRuter = this.$router.resolve({path: '/tool/datav/datavIndex'});
        //     window.open(viewRuter.href,'_self')
        // } else {
        //     const viewRuter = this.$router.resolve({path: '/tool/datav/datavIndex'});
        //     window.open(viewRuter.href,'_self')
        // }
    }
}
</script>

<style>

</style>